package com.qingcloud.api.dcengine.enums;

/**
 * 质控字段
 */
public enum PollutionValidField {
    PM25("PM25", "pm25_valid"),
    PM10("PM10", "pm10_valid"),
    CO("CO", "co_valid"),
    O3("O3", "o3_valid"),
    SO2("SO2", "so2_valid"),
    NO2("NO2", "no2_valid"),
    TVOC("TVOC", "tvoc_valid"),
    O38H("O3_8h", "o3_8h_valid"),
    PM2524H("PM25_24h", "pm25_24h_valid"),
    PM1024H("PM10_24h", "pm10_24h_valid");

    public String title;
    public String field;

    private PollutionValidField(String title, String field) {
        this.title = title;
        this.field = field;
    }

    public static String getFieldByTitle(String title) {
        PollutionValidField[] var1 = values();
        int var2 = var1.length;

        for (int var3 = 0; var3 < var2; ++var3) {
            PollutionValidField cpt = var1[var3];
            if (title.equalsIgnoreCase(cpt.title)) {
                return cpt.field;
            }
        }

        return null;
    }
}
